<!--suppress ALL -->
<include file="./Template/header.html" />

<link rel="stylesheet" type="text/css" href="/Template/css/bfo.css?v=2020102901">
<script type="text/javascript">

    $(document).ready(function(e) {
        $("#loadingToast").hide();
    });

	$(function() {

		//初始化页面配置
		initPage("BFMIS");

		var app = new Vue({
			el: '#container',
			data: {},
			methods: {
				myInfo: function() {
                    $("#loadingToast").show();
					window.location.href = "/wechat/userCenter/employeeInfo";
                    setTimeout(function() {
                        $("#loadingToast").hide();
                    }, 2000);
				},
                myOrder: function() {
                    $("#loadingToast").show();
                    window.location.href = "/wechat/userCenter/myOrder?status=0";
                    setTimeout(function() {
                        $("#loadingToast").hide();
                    }, 2000);
                },
                myAFO: function() {
                    $("#loadingToast").show();
                    window.location.href = "/wechat/workflow/index/type/1";
                    setTimeout(function() {
                        $("#loadingToast").hide();
                    }, 2000);
                },
                mySpin: function() {
                    $("#loadingToast").show();
                    window.location.href = "/wechat/workflow/index/type/2";
                    setTimeout(function() {
                        $("#loadingToast").hide();
                    }, 2000);
                },
                mySco: function() {
                    $("#loadingToast").show();
                    window.location.href = "/wechat/workflow/index/type/4";
                    setTimeout(function() {
                        $("#loadingToast").hide();
                    }, 2000);
                },
                myCP: function() {
                    $("#loadingToast").show();
                    window.location.href = "/wechat/workflow/index/type/3";
                    setTimeout(function() {
                        $("#loadingToast").hide();
                    }, 2000);
                },
                myHKAFO: function() {
                    $("#loadingToast").show();
                    window.location.href = "/wechat/workflow/index/type/5";
                    setTimeout(function() {
                        $("#loadingToast").hide();
                    }, 2000);
                },
                myKO: function() {
                    $("#loadingToast").show();
                    window.location.href = "/wechat/workflow/index/type/6";
                    setTimeout(function() {
                        $("#loadingToast").hide();
                    }, 2000);
                },
                myFO: function() {
                    $("#loadingToast").show();
                    window.location.href = "/wechat/workflow/index/type/7";
                    setTimeout(function() {
                        $("#loadingToast").hide();
                    }, 2000);
                },
                myShank: function() {
                    $("#loadingToast").show();
                    window.location.href = "/wechat/workflow/index/type/9";
                    setTimeout(function() {
                        $("#loadingToast").hide();
                    }, 2000);
                },
                magazine: function() {
                    $("#loadingToast").show();
                    window.location.href = "/wechat/magazine";
                    setTimeout(function() {
                        $("#loadingToast").hide();
                    }, 2000);
                },
                finance: function() {
                    $("#loadingToast").show();
                    window.location.href = "/wechat/audit/instoreList?status=0";
                    setTimeout(function() {
                        $("#loadingToast").hide();
                    }, 2000);
                },
                claim: function() {
                    $("#loadingToast").show();
                    window.location.href = "/wechat/audit/claimList?status=0";
                    setTimeout(function() {
                        $("#loadingToast").hide();
                    }, 2000);
                },
                purchase: function() {
                    $("#loadingToast").show();
                    window.location.href = "/wechat/audit/purchaseList?status=0";
                    setTimeout(function() {
                        $("#loadingToast").hide();
                    }, 2000);
                },
                finishedProduct: function() {
                    $("#loadingToast").show();
                    window.location.href = "/wechat/finishedProduct";
                    setTimeout(function() {
                        $("#loadingToast").hide();
					}, 2000);
                },
                specialProduct: function() {
                    $("#loadingToast").show();
                    window.location.href = "/wechat/specialProduct";
                    setTimeout(function() {
                        $("#loadingToast").hide();
                    }, 2000);
                },
                hospital: function() {
                    $("#loadingToast").show();
                    window.location.href = "/wechat/hospitalProduct/";
                    setTimeout(function() {
                        $("#loadingToast").hide();
                    }, 2000);
                },
                specialOrder: function() {
                    $("#loadingToast").show();
                    window.location.href = "/wechat/finishedProduct?classId=17";
                    setTimeout(function() {
                        $("#loadingToast").hide();
                    }, 2000);
                },
                specialOrderList: function() {
                    $("#loadingToast").show();
                    window.location.href = "/wechat/finishedProduct/orderList?classId=17";
                    setTimeout(function() {
                        $("#loadingToast").hide();
                    }, 2000);
                },
			}
		})

		$("img.icon-up").click(function() {

			$(this).hide();
			$("img.icon-down").show();

			$(".info-detail").toggle();

		});

		$("img.icon-down").click(function() {

			$(this).hide();
			$("img.icon-up").show();

			$(".info-detail").toggle();

		});

	})

</script>

<div class="container" id="container">
	<div class="guidence">
		<div class="user-info">
			<div class="user-info-title">
				<img class="lefthint" src="/Template/images/icon-lefthint.png" alt="">
				<span v-on:click="myInfo">个人资料<!--img style="width: 1rem;height: 1rem;margin-left: 0.5rem;" src="/Template/images/edit.png"--></span>
				<img class="icon-up" src="/Template/images/icon-up.png" alt="">
				<img class="icon-down" src="/Template/images/icon-down.png" alt="">
			</div>
			<div class="line"></div>
			<div class="info-detail">
				<div class="left-content">
					<p class="info name">姓名：<span>{$employee.admin_name}</span></p>
				</div>
				<div class="right-content">
					<p class="info right-info phone">企业：<span>{$employee.enterprise_name}</span></p>
				</div>
				<div>
					<php>
						$apartment = "";
						$allRoleList = D("AdminRole")->select();
						$roleList = explode(',', $employee["role"]);
						foreach($allRoleList as $role) {
						if (in_array($role["id"], $roleList)) {
						$apartment.=$role["name"];
						if($role != end($allRoleList)) {
						$apartment.=",";
						}
						}
						}
					</php>
					<p class="info">部门：<span>{$apartment}</span></p>
				</div>
				<div>
					<p style="color: #e97c7d" class="info"># 如需修改员工资料请联系贵公司管理员 #</p>
				</div>
			</div>
			<!--div class="user-center">
				<div class="user-center-exihibate">
					<ul>
						<li class="item" v-on:click="myOrder">
							<img class="pic" src="/Template/images/icon-myOrder.png" alt="">
							<p class="aims">我的订单</p>
						</li>
						<li class="item" v-on:click="myBooking">
							<img class="pic" src="/Template/images/icon-myBooking.png" alt="">
							<p class="aims">我的预约</p>
						</li>
						<li class="item" v-on:click="myActivity">
							<img class="pic" src="/Template/images/icon-myActivity.png" alt="">
							<p class="aims">我的活动</p>
						</li>
					</ul>
				</div>
			</div>
			<div class="line"></div-->
		</div>
	</div>

	<php>
		$checkRole = in_role($employeeRole,"1,2,3,4,5,6,7,8,9,10,11,12");
	</php>
	<div class="disease-content" v-if="{$checkRole} == true">
		<div class="disease-classify">
			<div style="padding-left: 1rem;padding-top: 0.1rem">
				<img style="vertical-align: middle" src="/Template/images/icon-lefthint.png" alt="">
				<span style="color: #5d5e63;">成品系列</span>
			</div>

			<div class="employee-center">
				<div class="employee-center-exihibate">
					<ul style="height: 4.5rem">
						<li class="item" style="width: 100%" v-on:click="finishedProduct">
							<img class="pic" style="width: 100%" src="/Template/images/icon-finishedProductLong.png" alt="">
						</li>
					</ul>
				</div>
			</div>
		</div>
	</div>
	<div class="disease-content" v-if="{$checkRole} == true">
		<div class="disease-classify">
			<div style="padding-left: 1rem;padding-top: 0.1rem">
				<img style="vertical-align: middle" src="/Template/images/icon-lefthint.png" alt="">
				<span style="color: #5d5e63;">医院定制系列</span>
			</div>

			<div class="employee-center">
				<div class="employee-center-exihibate">
					<ul style="height: 4.5rem">
						<li class="item" style="width: 100%" v-on:click="specialProduct">
							<img class="pic" style="width: 100%" src="/Template/images/icon-specialProductLong.png" alt="">
						</li>
					</ul>
				</div>
			</div>
		</div>
	</div>
	<php>
		$checkRole = in_role($employeeRole,"1,2,5,6,7,8,9,10");
	</php>
		<div class="disease-content" v-if="{$checkRole} == true">
			<div class="disease-classify">
				<div style="padding-left: 1rem;padding-top: 0.1rem">
					<img style="vertical-align: middle" src="/Template/images/icon-lefthint.png" alt="">
					<span style="color: #5d5e63;">下肢矫形器定制</span>
				</div>
				<div class="employee-center">
					<div class="employee-center-exihibate">
						<ul>
							<li class="item" v-on:click="myFO">
								<img class="pic" src="/Template/images/icon-fo.png" alt="">
								<p class="aims2">FO</p>
							</li>
							<li class="item" v-on:click="myAFO">
								<img class="pic" src="/Template/images/icon-myAFO.png" alt="">
								<p class="aims2">AFO</p>
							</li>
							<li class="item" v-on:click="myKO">
								<img class="pic" src="/Template/images/icon-ko.png" alt="">
								<p class="aims2">KO</p>
							</li>
							<li class="item" v-on:click="myHKAFO">
								<img class="pic" src="/Template/images/icon-hkafo.png" alt="">
								<p class="aims2">(H)KAFO</p>
							</li>
						</ul>
					</div>
				</div>
			</div>
		</div>
	<php>
		$checkRole = in_role($employeeRole,"1,2,5,6,7,8,9,10");
	</php>
	<div class="disease-content" v-if="{$checkRole} == true">
		<div class="disease-classify">
			<div style="padding-left: 1rem;padding-top: 0.1rem">
				<img style="vertical-align: middle" src="/Template/images/icon-lefthint.png" alt="">
				<span style="color: #5d5e63;">脊柱矫形器定制</span>
			</div>

			<div class="employee-center">
				<div class="employee-center-exihibate">
					<ul>
						<li class="item" v-on:click="mySpin">
							<img class="pic" src="/Template/images/icon-tlso.png" alt="">
							<p class="aims2">(C)TLSO</p>
						</li>
						<li class="item" v-on:click="mySco">
							<img class="pic" src="/Template/images/icon-sco.png" alt="">
							<p class="aims2">脊柱侧弯</p>
						</li>
						<li class="item" >
							<!--img class="pic" src="/Template/images/icon-milling.png" alt="">
							<p class="aims2">代加工</p-->
						</li>
						<li class="item" >

						</li>
					</ul>
				</div>
			</div>
		</div>
	</div>

	<php>
		$checkRole = in_role($employeeRole,"1,2,5,6,7,8,9,10");
	</php>
	<div class="disease-content" v-if="{$checkRole} == true">
		<div class="disease-classify">
			<div style="padding-left: 1rem;padding-top: 0.1rem">
				<img style="vertical-align: middle" src="/Template/images/icon-lefthint.png" alt="">
				<span style="color: #5d5e63;">假肢定制</span>
			</div>

			<div class="employee-center">
				<div class="employee-center-exihibate">
					<ul>
						<li class="item" v-on:click="myShank">
							<img class="pic" src="/Template/images/icon-shank.png" alt="">
							<p class="aims2">小腿假肢</p>
						</li>
						<li class="item" v-on:click="myThigh">
							<img class="pic" src="/Template/images/icon-thigh.png" alt="">
							<p class="aims2">大腿假肢</p>
						</li>
						<li class="item" v-on:click="myArm">
							<img class="pic" src="/Template/images/icon-arm.png" alt="">
							<p class="aims2">上肢假肢</p>
						</li>
						<li class="item" v-on:click="myLimb">
							<img class="pic" src="/Template/images/icon-limb.png" alt="">
							<p class="aims2">其它假肢</p>
						</li>
					</ul>
				</div>
			</div>
		</div>
	</div>
	<php>
		$checkRole = in_role($employeeRole,"1,2,3,4,5,6,7,8,9,10,11");
	</php>
	<div class="disease-content" v-if="{$checkRole} == true">
		<div class="disease-classify">
			<div style="padding-left: 1rem;padding-top: 0.1rem">
				<img style="vertical-align: middle" src="/Template/images/icon-lefthint.png" alt="">
				<span style="color: #5d5e63;">其它</span>
			</div>

			<div class="employee-center">
				<div class="employee-center-exihibate">
					<ul>
						<li class="item" v-on:click="who">
							<img class="pic" src="/Template/images/icon-who.png" alt="">
							<p class="aims2">WHO</p>
						</li>
						<php>
							//$checkRole = in_role($employeeRole,"1,2,4,10");
							$checkRole = in_role($employeeRole,"1");
						</php>
						<li class="item" v-on:click="specialOrder" v-if="{$checkRole} == true">
							<img class="pic" src="/Template/images/icon-buy.png" alt="">
							<p class="aims2">特殊订单</p>
						</li>
						<li class="item" v-on:click="specialOrderList" v-if="{$checkRole} == true">
							<img class="pic" src="/Template/images/icon-myOrder.png" alt="">
							<p class="aims2">订单列表</p>
						</li>
						<li class="item" v-on:click="hospital" v-if="{$checkRole} == true">
							<img class="pic" src="/Template/images/icon-hospital.png" alt="">
							<p class="aims2">医院订单</p>
						</li>
						<li class="item" v-on:click="finance" v-if="{$checkRole} == true">
							<img class="pic" src="/Template/images/icon-myPayment.png" alt="">
							<p class="aims2">出库审核</p>
						</li>
						<li class="item" v-on:click="claim" v-if="{$checkRole} == true">
							<img class="pic" src="/Template/images/icon-buyModel.png" alt="">
							<p class="aims2">领料审核</p>
						</li>
						<li class="item" v-on:click="purchase" v-if="{$checkRole} == true">
							<img class="pic" src="/Template/images/icon-myPayment.png" alt="">
							<p class="aims2">采购审核</p>
						</li>
						<php>
							$checkRole = in_role($employeeRole,"1,2,5,6,7,8,9,10");
						</php>
						<li class="item" v-on:click="myCP" v-if="{$checkRole} == true">
							<img class="pic" src="/Template/images/icon-myCP.png" alt="">
							<p class="aims2">脑瘫物理检查</p>
						</li>
						<!--li class="item" v-on:click="magazine">
							<img class="pic" src="/Template/images/icon-magazine.png" alt="">
							<p class="aims2">宣传栏</p>
						</li-->
						<li class="item" >

						</li>
						<li class="item" >

						</li>
					</ul>
				</div>
			</div>
		</div>
	</div>

	</div>
</div>
<include file="./Template/footer.html" />